import request from "@/utils/request";

export function findSysRoleList(data) {
  return request({
    url: '/base-sixreal/sysrole/findSysRole?name='+data,
    method: 'get'
  })
}

export function add(data) {
  return request({
    url: '/base-sixreal/sysrole/addSysRole',
    method: 'post',
    data
  })
}


export function delSysRole(id) {
  return request({
    url: '/base-sixreal/sysrole/deleteSysRole/'+id,
    method: 'get',
  })
}


export function updateSysRole(data) {
  return request({
    url: '/base-sixreal/sysrole/updateSysRole',
    method: 'post',
    data
  })
}
